"""
#######################
#     Terminal Run    #
# codng by XCreeperPa #
#######################

Terminal for Windows 程序入口

"""
from PyQt5.QtWidgets import QApplication
# from qt_material import apply_stylesheet

from TerminalUIAPI import MainWindow


def terminalrun(debug: bool = False):
    app = QApplication([])
    if debug:
        mainw = MainWindow(debug=True)
    else:
        mainw = MainWindow
    # apply_stylesheet(app, theme='dark_teal.xml')
    mainw.show()
    app.exec_()


if __name__ == '__main__':
    terminalrun(debug=True)
